﻿#region Using

using Common.Base;

using GameCommon.Interfaces;

using GameLogic.FrontEndData.Enums;

#endregion

namespace GameLogic.FrontEndData.Commands
{
    #region Using

    

    #endregion

    public class BuildCommand : ICommand
    {
        public BuildCommand(Position position, BuildingType buildingType)
        {
            this.Position = position;
            this.BuildingType = buildingType;
        }

        public BuildingType BuildingType { get; private set; }

        public Position Position { get; private set; }

        public CommandResult ExecuteOn(ICommandExecutor executor, IPlayer sender)
        {
            return executor.ExecuteCommand(this, sender);
        }
    }
}